package org.glut.wechat.addresslist.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.glut.wechat.addresslist.entity.Relation;


import java.util.List;

/**
* 好友表 Mapper
*
* @author harry
* @since 2025-08-20 21:42
*/

public interface RelationMapper extends BaseMapper<Relation> {
    /**
     * 根据用户ID查询正常状态（status=1）的好友ID列表
     * @param userId 本人ID
     * @return 好友ID列表
     */
    List<Integer> selectFriendIdsByUserId(Integer userId);
}
